//
//  MyOtherCell.swift
//  ShiZhe
//
//  Created by 陈卿伟 on 16/8/27.
//  Copyright © 2016年 陈卿伟. All rights reserved.
//

import UIKit

class MyOtherCell: UITableViewCell {
    var leftLabel:UILabel!
    var rightLabel:UILabel!
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        leftLabel = UILabel()
        rightLabel = UILabel()
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.selectionStyle = .None
        self.accessoryType = .DisclosureIndicator
        self.createLeftLabel()
        self.createRightLabel()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}


//MARK:--UI设置
extension MyOtherCell{
    //创建左边的label
    func createLeftLabel(){
        leftLabel.frame = CGRect(x: 25*SCALEW, y: 11*SCALEH, width: 100*SCALEW, height: 18*SCALEH)
        leftLabel.textAlignment = .Left
        leftLabel.textColor = UIColor.blackColor()
        leftLabel.font = BaseFunc.getCustomFont(13)
        self.addSubview(leftLabel)
    }
    
    //创建右边的label
    func createRightLabel(){
        rightLabel = UILabel(frame: CGRect(x: WidthAPP-34*SCALEW-100*SCALEW,y: 12*SCALEH,width: 100*SCALEW,height: 17*SCALEH))
        rightLabel.textAlignment = .Right
        rightLabel.textColor = Theme.BlueColor
        rightLabel.font = BaseFunc.getCustomFont(12)
        self.addSubview(rightLabel)
    }
    
}
